<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'list.jsp' starting page</title>
		
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
		<!--
			<link rel="stylesheet" type="text/css" href="styles.css">
			-->
	
	</head>

<body>


	<table>
		<tr>
			<th>
				序号
			</th>
			<th>
				标题
			</th>
			<th>
				操作
			</th>
		</tr>

		<s:iterator value="#result.dataList" status="item">
			<tr>
				<td>
					<input type="checkbox"/><s:property value="#item.index+1"/>
				</td>
				<td>
					<s:property value="title"/>
				</td>
				<td>
					<a href="edit.action?id=<s:property value='id'/>">修改</a>
					<a href="delete.action?id=<s:property value='id'/>">删除</a>
				</td>
			</tr>
			
		</s:iterator>
	</table>
	<s:property value="#result.pagination" escape="false"/>
</body>
</html>
